home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / fglqbx10.zip / 09-02.BAS < prev    next >
BASIC Source File  |  1991-06-06  |  638b  |  33 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. Perimeter$ = CHR$(&hFF)+CHR$(&h80)+CHR$(&h41)+CHR$(&h00)+CHR$(&h22)+ _
  6.              CHR$(&h00)+CHR$(&h14)+CHR$(&h00)+CHR$(&h08)+CHR$(&h00)
  7. Interior$  = CHR$(&h3E)+CHR$(&h1C)+CHR$(&h08)
  8.  
  9. NewMode = FGbestmode(320,200,1)
  10. IF NewMode < 0 OR NewMode = 12 THEN
  11.    PRINT "This program requires a 320 x 200 color graphics mode."
  12.    STOP
  13. END IF
  14.  
  15. OldMode = FGgetmode
  16. FGsetmode NewMode
  17.  
  18. FGsetcolor 7
  19. FGrect 0, 319, 0, 199
  20.  
  21. FGmove 156, 101
  22. FGsetcolor 1
  23. FGdrawmap Perimeter$, 2, 5
  24. FGmove 156, 100
  25. FGsetcolor 2
  26. FGdrawmap Interior$, 1, 3
  27. FGwaitkey
  28.  
  29. FGsetmode OldMode
  30. FGreset
  31.  
  32. END
  33.